<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="context.title"/></title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript" src="${ctx }/js/jquery.metadata.js"></script>
<link href="${ctx}/js/uploadify/uploadify.css" type="text/css" rel="stylesheet"/>
  <link rel="stylesheet" href="${ctx}/js/cluetip/jquery.cluetip.css" type="text/css" />

<script src="${ctx}/js/cluetip/jquery.cluetip.min.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$('.cluetip-link').cluetip({sticky: true,width:500, closePosition: 'title', arrows: true,ajaxCache:false});
		$("#main").validate({});
		$(".inpuslass").bind("keyup",function (){
			var sums =0.0;
			$("#table").find("input[type=text]").each(function(inx,obj){
				var val = $(obj).val() == "" ? 0 :$(obj).val() *1;
				sums += val*1;
				});
			$("#sumScore").text(sums);

		}); 
				
		});
	
</script>
</head>
<body>
<form action="scene-score" method="post" id="main">
<s:token></s:token>
<br/>
<p align="center"><s:actionmessage theme="mytheme" cssClass="actionMessage"/></p>
<h1 class="title01"><img src="${ctx}/images/02_15.gif" width="45" height="42" class="fl"/>现场答辩并评分</h1>
<input type="hidden" name="id" value="${thesis.id }"/>
<fieldset class="fs_ys" style="width: 600px">
<legend>题目</legend>
<table>
	<tr>
		<th>序号</th>
		<th>题目名称</th>
		<th>教师姓名</th>
		<th>教师职称</th>
		<th>选题学生姓名</th>
		<th>操作</th>
	</tr>
	<tr>
		<td>1&nbsp;</td>
		<td><a href="scene-score!input?id=${thesis.id }" class="ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" >${thesis.titile }</a>&nbsp;</td>
		<td>${thesis.teacherName }&nbsp;</td>
		<td>${thesis.teacherPost }&nbsp;</td>
		<td>${thesis.studentName }&nbsp;</td>
		<td><a href="scene-score!view?id=${thesis.id }" class="cluetip-link ui-state-default ui-corner-al" style="padding:3px 10px;text-decoration:none;" rel="scene-score!view?id=${thesis.id }">论文及答辩PPT</a>&nbsp;</td>
	</tr>
</table>
</fieldset>
<fieldset class="fs_ys" style="width: 780px">
<legend>评分</legend>
<table border="0"  cellspacing="1" class="table_ys_input" width="757" bgcolor="#000000" align="center">
    <tr bgcolor="#d8d8d8">
		<td  colspan=4 class="STYLE3"><div align="center" class="opUrl">
		<s:set name="f">1</s:set>
		<s:iterator value="ligongTypes" var="v">
	     	<s:if test="thesis.thesisType == #v.id">
		     	<s:set name="f">2</s:set>
	     	</s:if>
	     </s:iterator>
	     <s:iterator value="wenguanTypes" var="v">
	       	<s:if test="thesis.thesisType == #v.id">
		       	<s:set name="f">3</s:set>
	       	</s:if>
	     </s:iterator>
	     <s:if test="#f == 2">理工类</s:if>
	     <s:elseif test="#f == 3">文管类</s:elseif>
		本科生毕业设计（论文）评分、评语（答辩委员会部分）</div>&nbsp;</td>
    </tr>
     <tr bgcolor="#d8d8d8">
		<td  colspan=4 class="STYLE3"><div align="center" class="opUrl">
		  <div align="left" class="tr2">I、答辩委员会评分（60分）</div>
		</div>&nbsp;</td>
    </tr>
          
	</table>
	 
    <table border="0"  cellspacing="1" width="757" bgcolor="#000000" align="center" id="table">
      <tr bgcolor="#d8d8d8">
		<th width="42" height="28" class="STYLE5"><div align="left">序号</div></th>
        <th width="519" height="28" class="STYLE5"><div align="left">评分依据</div></th>
        <th width="86" height="28" class="STYLE5"><div align="left">参考分值</div></th>
        <th width="97" height="28" class="STYLE5"><div align="left">教师评分</div></th>
		</tr>
	<s:iterator value="pingfenyiju" status="st" var="v">
	<tr bgcolor="#d8d8d8">
    	<td width="42"class="STYLE5">${st.index+1 }&nbsp;</td>
    	<td width="519"class="STYLE5">${v.pcnm }&nbsp;</td>
    	<td width="86"class="STYLE5">${v.memo }分&nbsp;</td>
    	<td width="97"class="STYLE5"> 
    		<input   type="text" name="valueMap[${v.id }]" value="<s:property value="valueMap[#v.id]"/>" size=5 class="{number:true,required:true,max:${v.memo }} inpuslass"style="background-color:white" />
    	&nbsp;</td>
	</tr>
	</s:iterator>
    
    <tr bgcolor="#d8d8d8">
    <td width="42"class="STYLE5">3&nbsp;</td>
    <td colspan="2"class="STYLE5">成绩合计&nbsp;</td>
    
    <td width="97"class="STYLE5"><span id="sumScore">${thesis.dabianScore }</span>&nbsp;</td>
	</tr>
    </table>
      <table border="0"  cellspacing="1" class="table_ys_input" width="757" bgcolor="#000000" align="center">
       <tr bgcolor="#d8d8d8">
		<td  colspan=4 class="STYLE3"><div align="center" class="opUrl">
		  <div align="left" class="tr2">II、答辩委员会评语（根据评分依据填写，写不下可另加附页）</div>
		</div>&nbsp;</td>
    </tr>
    <tr bgcolor="#d8d8d8">
		<td width="757"class="STYLE5"><textarea name="thesisFile.dabianSceneContent" rows="16" cols="89"  >${thesis.thesisFile.dabianSceneContent }</textarea>&nbsp;</td>
    </tr>
    </table>
    
    <table border="0"  cellspacing="1" width="757" bgcolor="#000000" align="center">
	<tr bgcolor="#d8d8d8"><td width="651"class="STYLE5">
     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 答辩委员会签字： ${loginTeacher.teacherName } &nbsp;&nbsp;&nbsp; <s:date name="@com.suitsoft.ut.util.DateUtils@getCurrentDate()" format="yyyy年MM月dd日"/>
       </p>
    &nbsp;</td>
	</tr>
    </table>
  	<table align="center">
  		<tr>
  			<tc:timeControler authName="答 辩">
  			<td align="left"><input value="提交" type="submit" name="method:save" onclick="return confirm('确定提交?')"/>&nbsp;</td>
  			</tc:timeControler>
  			<td align="right"><input type="button" onclick="history.back();" value="返回"/>&nbsp;</td>
  		</tr>
  	</table>
  
 </fieldset>
</form>
</body>

</html>